# @Time  : 2021/7/27 17:51
# @Author: zhanfengzhen
# @Email : zhanfengzhen@126.com
# @File  : main_page.py
# !/usr/bin/env python
# -*- coding: UTF-8 -*-
from time import sleep

from selenium.webdriver.common.by import By

from hogwarts.HogwartsHomework.webautomationWork2.po.basePage import BasePage
from hogwarts.HogwartsHomework.webautomationWork2.po.contactPage import ContactPage


class MainPage(BasePage):
    #通讯录按钮
    _CONTACT = (By.ID, 'menu_contacts')
    def goto_contatc(self):
        self.find_and_click(*self._CONTACT)
        return ContactPage(self.dri)